<?php
// example of how to use basic selector to retrieve HTML contents
include('simple_html_dom.php');
  
// get DOM from URL or file
$html = file_get_html('http://www.timesofmoney.com/remittance/jsp/r2iExchRateCalculator.jsp?action1=doCalculation&grates=&selCountry=US-USD&payMode=ACH&rate=NORMAL&rate1=NORMAL&payMode=WIRE&rmtAmount=1100');

//html table creation


//$output = $html->getElementById("rateDisplayx")->plaintext;
$output = $html->getElementById("rateDisplay")->plaintext;

//$strArray = split(":",$output);

//$val = $strArray[1];
//$val = trim($val);
//$val = substr($val,0,5);

echo "<span style='font-family: verdana; color: blue; font-size: 11;'>";
//echo $val;
echo trim($output);
echo "</span>";
?>